package com.antler.smt.portal.utils;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

/**
 * 格式化字符串
 *
 * @author zhangyi
 * @date 2018/9/26 16:46
 */
public class FormatListUtil {

    public static List<Integer> pareIntLists(String strArrays){
        List<String> strings = Arrays.asList(strArrays.split(","));
        List<Integer> integerList = new LinkedList<>();
        for(String str : strings){
            int i = Integer.parseInt(str);
            integerList.add(i);
        }
        return integerList;
    }
}
